package com.swinw.asumall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.swinw.asumall.ware.vo.SkuIdAndCountVo;
import com.swinw.common.utils.PageUtils;
import com.swinw.asumall.ware.entity.WareSkuEntity;
import com.swinw.common.utils.R;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 *
 * @author 罗义华
 * @email 2407550328@qq.com
 * @date 2020-10-04 13:52:51
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void addStock(Long skuId, Long wareId, Integer skuNum);

    WareSkuEntity selectByWareBySkuId(Long skuId);

    R lockWare(String skuAndCount) throws Exception;

}

